{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nvar genBorderedStyle = function genBorderedStyle(token) {\n  var _table, _$concat2, _Object$assign, _$concat4, _$concat5;\n  var componentCls = token.componentCls;\n  var tableBorder = \"\".concat(token.lineWidth, \"px \").concat(token.lineType, \" \").concat(token.tableBorderColor);\n  var getSizeBorderStyle = function getSizeBorderStyle(size, paddingVertical, paddingHorizontal) {\n    return _defineProperty({}, \"&\".concat(componentCls, \"-\").concat(size), _defineProperty({}, \"> \".concat(componentCls, \"-container\"), _defineProperty({}, \"> \".concat(componentCls, \"-content, > \").concat(componentCls, \"-body\"), {\n      '> table > tbody > tr > td': _defineProperty({}, \"> \".concat(componentCls, \"-expanded-row-fixed\"), {\n        margin: \"-\".concat(paddingVertical, \"px -\").concat(paddingHorizontal + token.lineWidth, \"px\")\n      })\n    })));\n  };\n  return _defineProperty({}, \"\".concat(componentCls, \"-wrapper\"), (_$concat5 = {}, _defineProperty(_$concat5, \"\".concat(componentCls).concat(componentCls, \"-bordered\"), Object.assign(Object.assign(Object.assign((_Object$assign = {}, _defineProperty(_Object$assign, \"> \".concat(componentCls, \"-title\"), {\n    border: tableBorder,\n    borderBottom: 0\n  }), _defineProperty(_Object$assign, \"> \".concat(componentCls, \"-container\"), (_$concat2 = {\n    borderInlineStart: tableBorder\n  }, _defineProperty(_$concat2, \"\\n            > \".concat(componentCls, \"-content,\\n            > \").concat(componentCls, \"-header,\\n            > \").concat(componentCls, \"-body,\\n            > \").concat(componentCls, \"-summary\\n          \"), {\n    '> table': (_table = {}, _defineProperty(_table, \"\\n                > thead > tr > th,\\n                > tbody > tr > td,\\n                > tfoot > tr > th,\\n                > tfoot > tr > td\\n              \", {\n      borderInlineEnd: tableBorder\n    }), _defineProperty(_table, '> thead', {\n      '> tr:not(:last-child) > th': {\n        borderBottom: tableBorder\n      },\n      '> tr > th::before': {\n        backgroundColor: 'transparent !important'\n      }\n    }), _defineProperty(_table, \"\\n                > thead > tr,\\n                > tbody > tr,\\n                > tfoot > tr\\n              \", _defineProperty({}, \"> \".concat(componentCls, \"-cell-fix-right-first::after\"), {\n      borderInlineEnd: tableBorder\n    })), _defineProperty(_table, '> tbody > tr > td', _defineProperty({}, \"> \".concat(componentCls, \"-expanded-row-fixed\"), {\n      margin: \"-\".concat(token.tablePaddingVertical, \"px -\").concat(token.tablePaddingHorizontal + token.lineWidth, \"px\"),\n      '&::after': {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: token.lineWidth,\n        bottom: 0,\n        borderInlineEnd: tableBorder,\n        content: '\"\"'\n      }\n    })), _table)\n  }), _defineProperty(_$concat2, \"\\n            > \".concat(componentCls, \"-content,\\n            > \").concat(componentCls, \"-header\\n          \"), {\n    '> table': {\n      borderTop: tableBorder\n    }\n  }), _$concat2)), _defineProperty(_Object$assign, \"&\".concat(componentCls, \"-scroll-horizontal\"), _defineProperty({}, \"> \".concat(componentCls, \"-container > \").concat(componentCls, \"-body\"), {\n    '> table > tbody': _defineProperty({}, \"\\n                > tr\".concat(componentCls, \"-expanded-row,\\n                > tr\").concat(componentCls, \"-placeholder\\n              \"), {\n      '> td': {\n        borderInlineEnd: 0\n      }\n    })\n  })), _Object$assign), getSizeBorderStyle('middle', token.tablePaddingVerticalMiddle, token.tablePaddingHorizontalMiddle)), getSizeBorderStyle('small', token.tablePaddingVerticalSmall, token.tablePaddingHorizontalSmall)), _defineProperty({}, \"> \".concat(componentCls, \"-footer\"), {\n    border: tableBorder,\n    borderTop: 0\n  }))), _defineProperty(_$concat5, \"\".concat(componentCls, \"-cell\"), (_$concat4 = {}, _defineProperty(_$concat4, \"\".concat(componentCls, \"-container:first-child\"), {\n    // :first-child to avoid the case when bordered and title is set\n    borderTop: 0\n  }), _defineProperty(_$concat4, '&-scrollbar:not([rowspan])', {\n    boxShadow: \"0 \".concat(token.lineWidth, \"px 0 \").concat(token.lineWidth, \"px \").concat(token.tableHeaderBg)\n  }), _$concat4)), _$concat5));\n};\nexport default genBorderedStyle;","map":{"version":3,"names":["genBorderedStyle","token","componentCls","tableBorder","lineWidth","lineType","tableBorderColor","getSizeBorderStyle","size","paddingVertical","paddingHorizontal","margin","Object","assign","border","borderBottom","borderInlineStart","borderInlineEnd","backgroundColor","tablePaddingVertical","tablePaddingHorizontal","position","top","insetInlineEnd","bottom","content","borderTop","tablePaddingVerticalMiddle","tablePaddingHorizontalMiddle","tablePaddingVerticalSmall","tablePaddingHorizontalSmall","boxShadow","tableHeaderBg"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/table/style/bordered.js"],"sourcesContent":["const genBorderedStyle = token => {\n  const {\n    componentCls\n  } = token;\n  const tableBorder = `${token.lineWidth}px ${token.lineType} ${token.tableBorderColor}`;\n  const getSizeBorderStyle = (size, paddingVertical, paddingHorizontal) => ({\n    [`&${componentCls}-${size}`]: {\n      [`> ${componentCls}-container`]: {\n        [`> ${componentCls}-content, > ${componentCls}-body`]: {\n          '> table > tbody > tr > td': {\n            [`> ${componentCls}-expanded-row-fixed`]: {\n              margin: `-${paddingVertical}px -${paddingHorizontal + token.lineWidth}px`\n            }\n          }\n        }\n      }\n    }\n  });\n  return {\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}${componentCls}-bordered`]: Object.assign(Object.assign(Object.assign({\n        // ============================ Title =============================\n        [`> ${componentCls}-title`]: {\n          border: tableBorder,\n          borderBottom: 0\n        },\n        // ============================ Content ============================\n        [`> ${componentCls}-container`]: {\n          borderInlineStart: tableBorder,\n          [`\n            > ${componentCls}-content,\n            > ${componentCls}-header,\n            > ${componentCls}-body,\n            > ${componentCls}-summary\n          `]: {\n            '> table': {\n              // ============================= Cell =============================\n              [`\n                > thead > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              `]: {\n                borderInlineEnd: tableBorder\n              },\n              // ============================ Header ============================\n              '> thead': {\n                '> tr:not(:last-child) > th': {\n                  borderBottom: tableBorder\n                },\n                '> tr > th::before': {\n                  backgroundColor: 'transparent !important'\n                }\n              },\n              // Fixed right should provides additional border\n              [`\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              `]: {\n                [`> ${componentCls}-cell-fix-right-first::after`]: {\n                  borderInlineEnd: tableBorder\n                }\n              },\n              // ========================== Expandable ==========================\n              '> tbody > tr > td': {\n                [`> ${componentCls}-expanded-row-fixed`]: {\n                  margin: `-${token.tablePaddingVertical}px -${token.tablePaddingHorizontal + token.lineWidth}px`,\n                  '&::after': {\n                    position: 'absolute',\n                    top: 0,\n                    insetInlineEnd: token.lineWidth,\n                    bottom: 0,\n                    borderInlineEnd: tableBorder,\n                    content: '\"\"'\n                  }\n                }\n              }\n            }\n          },\n          [`\n            > ${componentCls}-content,\n            > ${componentCls}-header\n          `]: {\n            '> table': {\n              borderTop: tableBorder\n            }\n          }\n        },\n        // ============================ Scroll ============================\n        [`&${componentCls}-scroll-horizontal`]: {\n          [`> ${componentCls}-container > ${componentCls}-body`]: {\n            '> table > tbody': {\n              [`\n                > tr${componentCls}-expanded-row,\n                > tr${componentCls}-placeholder\n              `]: {\n                '> td': {\n                  borderInlineEnd: 0\n                }\n              }\n            }\n          }\n        }\n      }, getSizeBorderStyle('middle', token.tablePaddingVerticalMiddle, token.tablePaddingHorizontalMiddle)), getSizeBorderStyle('small', token.tablePaddingVerticalSmall, token.tablePaddingHorizontalSmall)), {\n        // ============================ Footer ============================\n        [`> ${componentCls}-footer`]: {\n          border: tableBorder,\n          borderTop: 0\n        }\n      }),\n      // ============================ Nested ============================\n      [`${componentCls}-cell`]: {\n        [`${componentCls}-container:first-child`]: {\n          // :first-child to avoid the case when bordered and title is set\n          borderTop: 0\n        },\n        // https://github.com/ant-design/ant-design/issues/35577\n        '&-scrollbar:not([rowspan])': {\n          boxShadow: `0 ${token.lineWidth}px 0 ${token.lineWidth}px ${token.tableHeaderBg}`\n        }\n      }\n    }\n  };\n};\nexport default genBorderedStyle;"],"mappings":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